package zjut.cocouml.editpolicy;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.ConnectionEditPolicy;
import org.eclipse.gef.requests.GroupRequest;

import zjut.cocouml.command.DeleteConnectionCommand;

public class AppConnectionEditPolicy extends ConnectionEditPolicy{

	protected Command getDeleteCommand(GroupRequest request) {
		DeleteConnectionCommand command = new DeleteConnectionCommand();
		
		System.out.println(getHost().getModel());
		command.setConnection(getHost().getModel());
		return command;
	}

}
